package project03;
/**
 * Title: Data class for CSIS 235 Project 3
 * Description: CS 235 Project #3 - Data
 *              Basic "server" (see definition of server in the Nino book) class.
 *              All this class does is store 3 pieces of data in data members.
 *              For good encapsulation: all data members should be private unless
 *              there is a real good reason for it to be anything else, like public.
 * @author Anthony Varghese
 * @email  your.n.here@my.uwrf.edu
 * @date   January 24th 2012
 */

public class Data {
	/**
	 * Data members
	 *  -- all 3 are private
	 */
	private int x;
	private float y;
	private String z;

	/**
	 * Constructor for Data class
	 *  -- takes three parameters, one for each data member
	 * @param x
	 * @param y
	 * @param z
	 */
	public Data(int x, float y, String z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	/**
	 * 3 Getters and 3 Setters, one for each data member.
	 * @return
	 */
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public String getZ() {
		return z;
	}

	public void setZ(String z) {
		this.z = z;
	}

	/**
	 * toString method to allow data to be printed out easily
	 *  prints the 3 data members inside square brackets.
	 */
	@Override
	public String toString() {
		return "Data [x=" + x + ", y=" + y + ", z=" + z + "]";
	}	
}
